
package com.joysuch.wwyt.datadump.biz.convertor;

import cn.zlg.common.datadump.annotation.DataDumpField;
import cn.zlg.common.datadump.convertor.FieldValueConvert;
import com.joysuch.wwyt.core.enums.RiskLevels;
import org.springframework.stereotype.Component;

@Component
public class ExportEduCertificateUserStatusConvertor implements FieldValueConvert<Integer, String> {

    @Override
    public String convert(Object bean, Integer value, DataDumpField dataField) {
        if(value == null) {
            return null;
        }
        if(value.intValue() == 0) {
            return "草稿";
        } else if(value.intValue() == 1) {
            return "归档";
        }
        return "作废";
    }

}
